package com.sure.classsystemserver.classroom.feedback.impl;

import com.sure.classsystemserver.classroom.feedback.Classroom;
import com.sure.classsystemserver.classroom.feedback.FeedbackDto;
import com.sure.classsystemserver.classroom.feedback.FeedbackService;
import com.sure.classsystemserver.classroom.feedback.FlowNumber;
import com.sure.classsystemserver.classroom.feedback.dao.FeedbackDao;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

@Service
@Transactional
public class FeedbackServiceImpl implements FeedbackService {
    @Resource
    private FeedbackDao feedbackDao;

    @Override
    public List<Classroom> findClassroomList(String u_id) {
        List<Classroom> classrooms=feedbackDao.findClassroomList(u_id);
        return classrooms;
    }

    @Override
    public List<FlowNumber> findFlowNumber(String c_address) {
        List<FlowNumber> flowNumber=feedbackDao.findNumberByAddress(c_address);
        return flowNumber;
    }
}
